#include <iostream>
using namespace std;

class Person
{
	private :
		string m_name;
		int m_index;
		string m_address;
		int m_tel;
	public :
		Person(string name = "hjj", int index = 13042210, string address = "Hang Zhou", int tel = 12345678) :
			m_name(name), m_index(index), m_address(address), m_tel(tel)
		{}

		void display()
		{
			cout << "Name   : " << m_name << endl;
			cout << "Index  : " << m_index << endl;
			cout << "Address: " << m_address << endl;
			cout << "Tel    : " << m_tel << endl;
			cout << endl;
		}
	protected :
};

int main()
{
	Person p1[5] = 
	{
		Person("hjj", 13042210, "Hang Zhou", 12345678),
		Person("jjn", 13042211, "Hang Zhou", 23456789),
		Person("hzx", 13042212, "Hang Zhou", 34567890),
		Person("zcw", 13042213, "Hang Zhou", 45678901),
		Person("jdw", 13042214, "Hang Zhou", 567890123)
	};

	Person *per = p1;

	for(Person *p = per; p < per + 5; p++)
	{
		p->display();
	}
}
